public class t91 {
    public static void main(String[] args) {
        String s = "06";

        /*if (s.charAt(0)=='0'){
           return 0;
        }*/
        System.out.println(s);

        char arr[] = s.toCharArray();
        int n = arr.length;
        int dp[] = new int [n+1];
        dp[0] = 1;
        //System.out.println((int)'A');
        for(int i =1; i<=n;i++){
            if(arr[i-1]>='1'&& arr[i-1]<='9'){
                dp[i] += dp[i-1];
            }
            if(i>1){
                int j = 10*(arr[i-2]-'0') + arr[i-1]-'0';
                if(j>=10 && j<=26){
                    dp[i] += dp[i-2];

                }
            }
        }
        System.out.println(dp[n]);
    }

}
